﻿<%@ Page Title="" Language="C#" MasterPageFile="~/WebForms/Site.Master" AutoEventWireup="true" CodeBehind="AddSystemAccount.aspx.cs" Inherits="DelonixRegiaHMSys.UI.WebForms.AddSystemAccount" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .auto-style4 {
            width: 99px;
        }
        .auto-style9 {
            width: 99px;
            height: 23px;
        }
        .auto-style10 {
            height: 23px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="wrapper">
        <div id="content">
            <h2>Add System Account</h2>
            <p>
                <asp:Label ID="lblError" runat="server" Font-Bold="True" ForeColor="Red"></asp:Label>
            </p>
            <table>
                <tr>
                    <td class="auto-style4"><asp:Label ID="UserIDlbl" runat="server" Text="UserID: " /></td>
                    <td><asp:TextBox runat="server" ID="UserIDtbx" Width="155px" MaxLength="16" /></td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="UserIDtbx" Display="Dynamic" ErrorMessage="Please enter the UserID!" Font-Bold="True" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style4"><asp:Label ID="Passwordlbl" runat="server" Text="Password: " /></td>
                    <td><asp:TextBox runat="server" ID="Passwordtbx" Width="155px" MaxLength="16" />
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="Passwordtbx" Display="Dynamic" ErrorMessage="Please enter the Password for the account!" Font-Bold="True" ForeColor="Red"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="Passwordtbx" Display="Dynamic" ErrorMessage="Password must be more than 8 character and should contain at least one one lower case letter, one upper case letter, one digit and one special character. Valid character include = @#$%^&+=" Font-Bold="True" ForeColor="Red" ValidationExpression="^.*(?=.{8,})(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%^&amp;+=]).*$"></asp:RegularExpressionValidator>
                    &nbsp;<br />
                        <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="UserIDtbx" ControlToValidate="Passwordtbx" Display="Dynamic" ErrorMessage="User ID and Password should not be the same!" Font-Bold="True" ForeColor="Red" Operator="NotEqual"></asp:CompareValidator>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style4"><asp:Label ID="AccessLevellbl" runat="server" Text="AccessLevel: " /></td>
                    <td>
                        <asp:DropDownList ID="DropDownListAL" runat="server" OnSelectedIndexChanged="DropDownListAL_SelectedIndexChanged" AutoPostBack="True">
                            <asp:ListItem></asp:ListItem>
                            <asp:ListItem Value="FS">Receptionist</asp:ListItem>
                            <asp:ListItem Value="MS">Management Staff</asp:ListItem>
                            <asp:ListItem Value="HA">Hotel Administrator</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="DropDownListAL" Display="Dynamic" ErrorMessage="Please select a value for AccessLevel" Font-Bold="True" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style9"><asp:Label ID="StaffIDlbl" runat="server" Text="StaffID: " /></td>
                    <td class="auto-style10">
                        <asp:DropDownList ID="DropDownListS" runat="server">
                            <asp:ListItem>
                                
                            </asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td class="auto-style10">
                        &nbsp;</td>
                </tr>
            </table>

            
            
        </div>

        <div id="left">
            <h3>This is the Add System Account Section.</h3>
            <p class="auto-style7">Please Fill in all the System Account Details and click Add.</p>
            <p>&nbsp;</p>
            <p>&nbsp;</p>
            <p>&nbsp;</p>
            <p>&nbsp;</p>
            <p>&nbsp;</p>
            <p>&nbsp;</p>
            <p>
                &nbsp;<asp:Button ID="Addbtn" runat="server" Height="35px" Text="Add" Width="89px" OnClick="Addbtn_Click" />
            </p>
        </div>
        <div class="clear"></div>

    </div>
</asp:Content>
